package com.yehuishou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yehuishou.dao.GuestbookDao;
import com.yehuishou.pojo.Guestbook;
import com.yehuishou.pojo.Itempl;
import com.yehuishou.service.GuestbookService;

@Service
public class GuestbookServiceImpl implements GuestbookService {

	@Autowired
	private GuestbookDao guestDao;
	
	@Override
	public List<Guestbook> findAll() {
		List<Guestbook> list = guestDao.finAll();
		return list;
	}

	@Override
	public void addItemP(Itempl ipl) {
		guestDao.addItemP(ipl);
	}

	@Override
	public List<Itempl> findIPL(Integer i_id) {
		return guestDao.findIPL(i_id);
	}

	@Override
	public void addGPL(Guestbook gb) {
		guestDao.addGPL(gb);
	}

}
